package com.binguo.api.data;

import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;

public class CacheData {
    public static HttpHeaders DEFAULT_JSON_HEADER;

    public static HttpHeaders DEFAULT_JSON_HEADER_UTF8;

    public static String localIpAddress;
    public static String ipAddress;
    public static String recIp;

    static {
        DEFAULT_JSON_HEADER = new HttpHeaders();
        MediaType jsontype = MediaType.APPLICATION_FORM_URLENCODED;
        DEFAULT_JSON_HEADER.setContentType(jsontype);


        DEFAULT_JSON_HEADER_UTF8 = new HttpHeaders();
        DEFAULT_JSON_HEADER_UTF8.setContentType(MediaType.APPLICATION_JSON_UTF8);

        localIpAddress = System.getenv().get("localIpAddress");
        ipAddress = System.getenv().get("ipAddress");
        recIp = System.getenv().get("recIp");
    }
}
